# -*- coding: utf-8 -*-
# @File     : admin.py
# @Author   : bingjia
# @Time     : 2020/7/29 16:45
# @Desc     : django admin模块配置显示数据

from django.contrib import admin

from .models import User


class UserAdmin(admin.ModelAdmin):
    # 添加搜索框
    search_fields = ('fullname',)
    # 列表展示
    list_display = ('username', 'email',)
    # 字段展示
    fields = ('username', 'email', 'fullname', 'bio')


admin.site.register(User, UserAdmin)
